﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrismRegion.Composite.ViewModels
{
    public class MainWindowViewModel
    {
        public CompositeCommand AllSaveCommand { get; set; }
        public DelegateCommand ShowPageCommand { get; set; }
        public MainWindowViewModel(IRegionManager regionManager,
            CompositeCommand compositeCommand)
        {
            ShowPageCommand = new DelegateCommand(() => {
                regionManager.RequestNavigate("Region1", "ViewA");
                regionManager.RequestNavigate("Region2", "ViewB");
            });
            AllSaveCommand = compositeCommand;
        }
    }
}
